<?php
    // +----------------------------------------------------------------------
    // | 海豚PHP框架 [ DolphinPHP ]
    // +----------------------------------------------------------------------
    // | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
    // +----------------------------------------------------------------------
    // | 官方网站: http://dolphinphp.com
    // +----------------------------------------------------------------------
    // | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
    // +----------------------------------------------------------------------

    namespace app\cms\api;


    /**
     * Class Activity
     *
     * @package app\cms\api
     */
    class Activity extends Common
    {

        /**
         * 商务活动
         * api /cms/activity/index
         */
        public function index()
        {

            $this->result([
                ['name'  => '内部商城',
                 'type'  => 'path',
                 'image' => 'http://wjlmdrugqniu.ssjtime.cn/34dea0e6cae97b079f0aec61e95c5702.png?v=693752',
                 'url'   => '/pages/shop/index'
                ],
                ['name' => '平安好医生','type' => 'url','image' => get_file_path(72),'url' => 'https://m.jk.cn/'],

                ['name'  => '贫困地区产品入驻平台 ',
                 'type'  => 'url',
                 'image' => get_file_path(76),
                 'url'   => 'http://m.ytlive.cn/component/home/home.html'
                ],
                ['name'  => '强大药商管理平台 ',
                 'type'  => 'url',
                 'image' => get_file_path(81),
                 'url'   => 'https://mp.weixin.qq.com/s/YQ3jJo9tcyB_FafFPg0rZw'
                ],

            ]);
        }
    }